<div class="modal fade in ip-box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" id="newlyAdded">
	<div class="modal-dialog " role="document" >
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h4 class="modal-title" id="myModalLabel">权限管理 — 新增</h4>
			</div>
			<div class="modal-body">

				<form name="newlyAddedForm">

					<div class="form-group">
						<label class="col-xs-12 col-sm-3 control-label text-right">权限编码:</label>
						<div class="col-xs-12 col-sm-9">
							<input type="text" 
								   name="operationCode" 
								   class="form-control" 
								   autocomplete="off" 
								   required 
								   ng-model="privilege_operationCode"
								   > 
						    <label class="red required">*</label>
							<div class="error ng-hide"
								ng-show="newlyAddedForm.operationCode.$dirty &amp;&amp; newlyAddedForm.operationCode.$invalid">
								<small class="error" ng-show="newlyAddedForm.operationCode.$error.required">请输入权限编码</small>
							</div>
						</div>
					</div>

					<div class="form-group">
						<label class="col-xs-12 col-sm-3 control-label text-right">权限名称:</label>
						<div class="col-xs-12 col-sm-9">
							<input type="text" 
								   name="operationName" 
								   class="form-control" 
								   autocomplete="off" 
								   required 
								   ng-model="privilege_operationName"
								   > 
							<label class="red required">*</label>
							<div class="error ng-hide"	ng-show="newlyAddedForm.operationName.$dirty &amp;&amp; newlyAddedForm.operationName.$invalid">
								<small class="error" ng-show="newlyAddedForm.operationName.$error.required">请输入权限名称</small>
							</div>
						</div>
					</div>

					<div class="form-group height-auto">
						<label class="col-xs-12 col-sm-3 control-label text-right">是否启用:</label>
						<div class="col-xs-12 col-sm-9">
							<select name="enable" 
									required 
									ng-model="privilege_enable"
									>
								<option id="" value="">请选择</option>
								<option id="" value="0">禁用</option>
								<option id="" value="1" selected="">启用</option>
							</select>
						</div>
					</div>

					<div class="form-group height-auto">
						<label class="col-xs-12 col-sm-3 control-label text-right">描述:</label>
						<div class="col-xs-12 col-sm-9">
							<textarea rows="4" 
									  type="text"
									  name="description" 
									  class="form-control"	
									  ng-model="privilege_description"
									  >
						    </textarea>                                    
						</div>
					</div>

					<div class="col-sm-12">
						<div class="modal-footer">
							<button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
							<button type="button" 
									class="btn btn-primary" 
									data-dismiss="modal"	
									ng-disabled="newlyAddedForm.$invalid"
									ng-click="submitNewlyAdded()"
									>新增
							</button>
						</div>
					</div>

				</form>

			</div>
		</div>
	</div>
</div>